home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / other / renderlib / doc / memory < prev    next >
Text File  |  1999-06-14  |  2KB  |  68 lines

  1.  
  2. memory consumption
  3. -----------------------------
  4.  
  5.   this  is a rough overview to memory consumption. this may and will
  6.   change in the future, you must not rely on these data.
  7.  
  8.  
  9.   > histograms
  10.  
  11.  
  12.   HSTYPE                        (1)             (2)³         [bytes]
  13.   ------------------------------------------------------------------
  14.   12BIT                        20×n¹            6×n 
  15.   15BIT                        20×n¹            6×n 
  16.   18BIT                        20×n¹            6×n 
  17.   21BIT                        20×n¹            6×n 
  18.   24BIT                        20×n¹            6×n 
  19.   12BIT_TURBO                16.384²            6×n 
  20.   15BIT_TURBO               131.072²            6×n 
  21.   18BIT_TURBO             1.048.576²            6×n 
  22.  
  23.   (1) memory consumed by the histogram
  24.   (2) additional buffers for ExtractPalette()³.
  25.  
  26.   n = number of color entries inside the histogram
  27.  
  28.   ¹ allocated dynamically
  29.   ² allocated with CreateHistogram()
  30.   ³ 8×n for the 68020 version
  31.  
  32.  
  33.   > palettes
  34.  
  35.  
  36.   HSTYPE                        (1)                          [bytes]
  37.   ------------------------------------------------------------------
  38.   12BIT                       8.192
  39.   15BIT                      65.536
  40.   18BIT                     524.288
  41.  
  42.   (1) Render(), ConvertChunky(), MapRGBArray(), RGBArrayDiversity(),
  43.   ChunkyArrayDiversity()
  44.   
  45.   the memory will be allocated as soon as one of the above functions
  46.   is  called. if the allocation fails, the palette falls back to the
  47.   next lower resolution.
  48.  
  49.   the  memory  will be freed whenever the palette changes, i.e. when
  50.   ImportPalette(),  ExtractPalette(),  SortPalette() etc. are  being
  51.   called.  you  may also call FlushPalette() at any time to manually
  52.   free these buffers.
  53.  
  54.  
  55.   > mapping-engines
  56.  
  57.  
  58.   HSTYPE¹                       (1)             (2)          [bytes]
  59.   ------------------------------------------------------------------
  60.   12BIT                       4.096           4.608
  61.   15BIT                      32.768          36.864
  62.   18BIT                     262.144         294.912
  63.  
  64.   ¹of the palette being assigned to
  65.  
  66.   (1) CreateMapEngine() - normal
  67.   (2) CreateMapEngine() - coupled with a histogram
  68.